package com.example.lanouhn.bantangapp.activities.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.example.lanouhn.bantangapp.R;

/**
 * Created by lanouhn on 16/7/23.
 */
public class AvatarArticle extends Activity {
    private ImageView  back;//返回图片按钮
    private LinearLayout artical;//跳转文章页面
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.avatar_article_activity);
        back= (ImageView) findViewById(R.id.back);
        artical= (LinearLayout) findViewById(R.id.artical);
        initLinstener();
    }
//点击监听事件
    private void initLinstener() {
        //返回点击
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        artical.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent it = new Intent(AvatarArticle.this,PublishActivity.class);
                startActivity(it);
            }
        });
    }
}
